﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace PESWeb.Pages.Ranking
{
    public partial class RankingSegundoTurno : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            LoadRanking();

            DropDownList ddlstCampeonatos = Master.FindControl("ddlstCampeonatos") as DropDownList;
            ddlstCampeonatos.SelectedIndexChanged += new EventHandler(LoadRanking);
        }

        private void LoadRanking()
        {
            LoadRanking(this, null);
        }

        private void LoadRanking(object sender, EventArgs e)
        {
            this.rankingGV.LoadRanking(this.CampeonatoCarregado, 2);
        }
    }
}